home *** CD-ROM | disk | FTP | other *** search
- -- card: 17119 from stack: in
- -- bmap block id: 17778
- -- flags: 0000
- -- background id: 11832
- -- name:
- ----- HyperTalk script -----
- on openCard
- put empty into card field "Display"
- put empty into card field id 27
- click at loc of card field "Display"
- end openCard
-
-
- -- part 1 (field)
- -- low flags: 00
- -- high flags: 0002
- -- rect: left=97 top=59 right=77 bottom=244
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 65535
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Display
-
-
- -- part 2 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=98 top=252 right=271 bottom=120
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: 1
- ----- HyperTalk script -----
- on mouseUp
- put 1 after card field "Display"
- end mouseUp
-
-
-
- -- part 3 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=139 top=253 right=272 bottom=161
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: 2
- ----- HyperTalk script -----
- on mouseUp
- put 2 after card field "Display"
- end mouseUp
-
-
-
- -- part 4 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=177 top=254 right=273 bottom=199
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: 3
- ----- HyperTalk script -----
- on mouseUp
- put 3 after card field "Display"
- end mouseUp
-
-
-
- -- part 5 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=99 top=222 right=241 bottom=121
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: 4
- ----- HyperTalk script -----
- on mouseUp
- put 4 after card field "Display"
- end mouseUp
-
-
-
- -- part 6 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=139 top=223 right=242 bottom=161
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: 5
- ----- HyperTalk script -----
- on mouseUp
- put 5 after card field "Display"
- end mouseUp
-
-
-
- -- part 7 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=177 top=224 right=243 bottom=199
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: 6
- ----- HyperTalk script -----
- on mouseUp
- put 6 after card field "Display"
- end mouseUp
-
-
-
- -- part 8 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=99 top=196 right=215 bottom=121
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: 7
- ----- HyperTalk script -----
- on mouseUp
- put 7 after card field "Display"
- end mouseUp
-
-
-
- -- part 9 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=139 top=196 right=215 bottom=161
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: 8
- ----- HyperTalk script -----
- on mouseUp
- put 8 after card field "Display"
- end mouseUp
-
-
-
- -- part 10 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=177 top=197 right=216 bottom=199
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: 9
- ----- HyperTalk script -----
- on mouseUp
- put 9 after card field "Display"
- end mouseUp
-
-
-
- -- part 11 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=98 top=280 right=300 bottom=122
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: 0
- ----- HyperTalk script -----
- on mouseUp
- put 0 after card field "Display"
- end mouseUp
-
-
-
- -- part 12 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=139 top=279 right=299 bottom=163
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: .
- ----- HyperTalk script -----
- on mouseUp
- put "." after card field "Display"
- end mouseUp
-
-
-
- -- part 13 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=177 top=280 right=300 bottom=201
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: C
- ----- HyperTalk script -----
- on mouseUp
- put empty into card field "Display"
- put empty into card field 2
- end mouseUp
-
-
-
- -- part 14 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=87 top=139 right=161 bottom=148
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: g to oz
- ----- HyperTalk script -----
- on mouseUp
- get card field "Display"
- set numberFormat to 00.00
- put it * .03527336861 into card field "Display"
- put "oz" into card field 2
- end mouseUp
-
-
-
- -- part 15 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=87 top=166 right=188 bottom=148
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: oz to g
- ----- HyperTalk script -----
- on mouseUp
- get card field "Display"
- set numberFormat to 00.00
- put it * 28.35 into card field "Display"
- put "g" into card field 2
- end mouseUp
-
-
-
- -- part 20 (button)
- -- low flags: 00
- -- high flags: 2000
- -- rect: left=464 top=309 right=335 bottom=496
- -- title width / last selected line: 0
- -- icon id / first selected line: 2162 / 2162
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Return
- ----- HyperTalk script -----
- on mouseUp
- pop card
- end mouseUp
-
-
-
- -- part 21 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=159 top=140 right=160 bottom=234
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: ml to fl oz
- ----- HyperTalk script -----
- on mouseUp
- get card field "Display"
- set numberFormat to 00.00
- put it * .034 into card field "Display"
- put "oz" into card field 2
- end mouseUp
-
-
-
- -- part 22 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=159 top=167 right=187 bottom=234
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: fl oz to ml
- ----- HyperTalk script -----
- on mouseUp
- get card field "Display"
- set numberFormat to 00.00
- put it * 29.575 into card field "Display"
- put "ml" into card field 2
- end mouseUp
-
-
-
- -- part 23 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=240 top=140 right=160 bottom=319
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: tsp to fl oz
- ----- HyperTalk script -----
- on mouseUp
- get card field "Display"
- set numberFormat to 00.00
- put it / 6 into card field "Display"
- put "oz" into card field 2
- end mouseUp
-
-
-
- -- part 24 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=240 top=168 right=188 bottom=319
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: fl oz to tsp
- ----- HyperTalk script -----
- on mouseUp
- get card field "Display"
- set numberFormat to 00.00
- put it * 6 into card field "Display"
- put "tsp" into card field 2
- end mouseUp
-
-
-
- -- part 25 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=240 top=196 right=216 bottom=319
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: tsp to Tbsp
- ----- HyperTalk script -----
- on mouseUp
- get card field "Display"
- set numberFormat to 00.00
- put it / 3 into card field "Display"
- put "Tbsp" into card field 2
- end mouseUp
-
-
-
- -- part 26 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=240 top=224 right=244 bottom=319
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Tbsp to tsp
- ----- HyperTalk script -----
- on mouseUp
- get card field "Display"
- set numberFormat to 00.00
- put it * 3 into card field "Display"
- put "tsp" into card field 2
- end mouseUp
-
-
-
- -- part 27 (field)
- -- low flags: 00
- -- high flags: 0002
- -- rect: left=247 top=59 right=77 bottom=294
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name:
-
-
- -- part 28 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=210 top=253 right=273 bottom=234
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: +
- ----- HyperTalk script -----
- on mouseUp
- get card field id 1
- if last char of it is in "+-/*" then
- beep
- exit mouseUp
- else
- put "+" after card field id 1
- end if
- end mouseUp
-
-
-
- -- part 29 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=210 top=280 right=300 bottom=234
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: -
- ----- HyperTalk script -----
- on mouseUp
- get card field id 1
- if last char of it is in "+-/*" then
- beep
- exit mouseUp
- else
- put "-" after card field id 1
- end if
- end mouseUp
-
-
-
- -- part 30 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=208 top=197 right=216 bottom=233
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: *
- ----- HyperTalk script -----
- on mouseUp
- get card field id 1
- if last char of it is in "+-/*" then
- beep
- exit mouseUp
- else
- put "*" after card field id 1
- end if
- end mouseUp
-
-
-
- -- part 31 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=209 top=224 right=243 bottom=233
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: /
- ----- HyperTalk script -----
- on mouseUp
- get card field id 1
- if last char of it is in "+-/*" then
- beep
- exit mouseUp
- else
- put "/" after card field id 1
- end if
- end mouseUp
-
-
-
- -- part 32 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=254 top=258 right=293 bottom=300
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: =
- ----- HyperTalk script -----
- on mouseUp
- get card field id 1
- if last char of it is not in "1234567890" then exit mouseUp
- put value of it into card field id 1
- end mouseUp
-
-
-
- -- part 34 (field)
- -- low flags: 01
- -- high flags: 0004
- -- rect: left=334 top=64 right=279 bottom=504
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 12
- -- style flags: 256
- -- line height: 16
- -- part name:
-
-
- -- part 35 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=87 top=84 right=106 bottom=148
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: qts to l
- ----- HyperTalk script -----
- on mouseUp
- get card field "Display"
- set numberFormat to 00.00
- put it / 1.057 into card field "Display"
- put "l" into card field 2
- end mouseUp
-
-
-
- -- part 36 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=155 top=84 right=106 bottom=240
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: qt to fl oz
- ----- HyperTalk script -----
- on mouseUp
- get card field "Display"
- set numberFormat to 00.00
- put it * 32 into card field "Display"
- put "fl oz" into card field 2
- end mouseUp
-
-
-
- -- part 37 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=155 top=112 right=134 bottom=240
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: fl oz to qt
- ----- HyperTalk script -----
- on mouseUp
- get card field "Display"
- set numberFormat to 00.00
- put it / 32 into card field "Display"
- put "qt" into card field 2
- end mouseUp
-
-
-
- -- part 38 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=87 top=112 right=134 bottom=148
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: l to qts
- ----- HyperTalk script -----
- on mouseUp
- get card field "Display"
- set numberFormat to 00.00
- put it * 1.057 into card field "Display"
- put "qts" into card field 2
- end mouseUp
-
-
-
- -- part 39 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=243 top=85 right=106 bottom=318
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: qt to cups
- ----- HyperTalk script -----
- on mouseUp
- get card field "Display"
- set numberFormat to 00.00
- put it * 4 into card field "Display"
- put "cups" into card field 2
- end mouseUp
-
-
-
- -- part 40 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=242 top=112 right=133 bottom=319
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: cups to qt
- ----- HyperTalk script -----
- on mouseUp
- get card field "Display"
- set numberFormat to 00.00
- put it / 4 into card field "Display"
- put "qt" into card field 2
- end mouseUp
-
-
-
- -- part contents for background part 1
- ----- text -----
- Conversion Calculator
-
- -- part contents for card part 34
- ----- text -----
- Units Definition
- g (grams) = .035 oz
- oz (ounces) = 28.35 g
- mg (miligram) = .001g
- 1 lb (pound) = 16 oz
- 1 kg (kilogram) =
- 2.21 lb = 1000 g
- 1 Tbsp (tablespoon) =
- 3 tsp (tea spoons)
- 1 fl oz (fluid ounce) =
- 2 Tbsp = 29.6 ml
- 1 l (liter) = 1000 ml =
- 1.057 quarts
-